/*
 * 描          述:  <描述>
 * 修  改   人:  Administrator
 * 修改时间:  2014年5月24日
 * <修改描述:>
 */
package com.tx.component.task.context;

import org.springframework.beans.factory.BeanNameAware;

import com.tx.component.task.service.TaskDefService;
import com.tx.component.task.service.TaskDetailService;
import com.tx.component.task.service.TaskExecuteLogService;
import com.tx.component.task.service.TaskStatusService;

/**
 * 事务容器构建器<br/>
 * 
 * @author PengQY
 * @version [版本号, 2014年5月24日]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class TaskContextBuilder extends TaskContextConfiguration
        implements BeanNameAware {
    
    /** beanName */
    protected static String beanName;
    
    /** 任务定义业务层 */
    private TaskDefService taskDefService;
    
    /** 任务状态业务层 */
    private TaskStatusService taskStatusService;
    
    /** 任务详情业务层 */
    private TaskDetailService taskDetailService;
    
    /** 任务执行日志业务层 */
    private TaskExecuteLogService taskExecuteLogService;
    
    /**
     * @param name
     */
    @Override
    public void setBeanName(String beanName) {
        TaskContextBuilder.beanName = beanName;
    }
    
    /**
     * @throws Exception
     */
    @Override
    public void doBuild() throws Exception {
    }
    
    /**
     * @return 返回 taskDefService
     */
    public TaskDefService getTaskDefService() {
        return taskDefService;
    }
    
    /**
     * @param 对taskDefService进行赋值
     */
    public void setTaskDefService(TaskDefService taskDefService) {
        this.taskDefService = taskDefService;
    }
    
    /**
     * @return 返回 taskStatusService
     */
    public TaskStatusService getTaskStatusService() {
        return taskStatusService;
    }
    
    /**
     * @param 对taskStatusService进行赋值
     */
    public void setTaskStatusService(TaskStatusService taskStatusService) {
        this.taskStatusService = taskStatusService;
    }
    
    /**
     * @return 返回 taskDetailService
     */
    public TaskDetailService getTaskDetailService() {
        return taskDetailService;
    }
    
    /**
     * @param 对taskDetailService进行赋值
     */
    public void setTaskDetailService(TaskDetailService taskDetailService) {
        this.taskDetailService = taskDetailService;
    }
    
    /**
     * @return 返回 taskExecuteLogService
     */
    public TaskExecuteLogService getTaskExecuteLogService() {
        return taskExecuteLogService;
    }
    
    /**
     * @param 对taskExecuteLogService进行赋值
     */
    public void setTaskExecuteLogService(
            TaskExecuteLogService taskExecuteLogService) {
        this.taskExecuteLogService = taskExecuteLogService;
    }
}